package config

import (
	"lifi/models"
	"time"
)

type Config struct {
	Pipelines   []Pipeline `json:"pipelines" yaml:"pipelines"`
	LogFilePath string     `json:"logFilePath" yaml:"logFilePath"`
}

type Pipeline struct {
	Name      string                   `json:"name" yaml:"name"`
	Sinks     []models.RunningSink     `json:"sinks" yaml:"sinks"`
	Transfers []models.RunningTransfer `json:"transfers" yaml:"transfers"`
	Source    models.RunningSource     `json:"source" yaml:"source"`
	Interval  time.Duration            `json:"interval,omitempty" yaml:"interval"`
}

const (
	DefaultMaxDecompressionSize = 500 * 1024 * 1024 //500MB
)
